home *** CD-ROM | disk | FTP | other *** search
/ PC World 2000 February / PCWorld_2000-02_cd.bin / Software / Vyzkuste / xsetup / _SETUP.2 / Group3 / XQ RIVA TNT 2.xpl < prev    next >
Text File  |  1999-10-13  |  2KB  |  66 lines

  1. "FILE"="Xteq Systems X-Setup Plugin 5.0"
  2. "TYPE"="7"
  3. "COUNT"="5"
  4. "UIPATH"="Hardware\Video Cards\Riva TNT"
  5. "NAME"="Rendering Speed"
  6. "VERSION"="1.10"
  7. "LANGUAGE"="VBScript"
  8. "TEXT 1"="Super fast"
  9. "TEXT 2"="Fast"
  10. "TEXT 3"="Normal"
  11. "TEXT 4"="Slow"
  12. "TEXT 5"="Compatibility"
  13. "DESCRIPTION 1"="Some options for your Riva TNT and Riva TNT 2 3D card." 
  14. "DESCRIPTION 2"="When rendering in Direct3d and VSync is OFF the TNT prerenders a number of frames to prevent artifacts [after images]. However in game play this can mean a delay of up to half a second when changing views while behind the scenes rendering is going on."
  15. "DESCRIPTION 3"="NOTE: This plug-in is only for use on Windows 95/98."
  16. "AUTHOR"="Xteq Systems"
  17. "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
  18. "COMMENT 1"="For more information, go to http://www.xteq.com or write to TeXHeX@xteq.com."
  19. "COMMENT 2"="Thanks to CptSiskoX for his help!"
  20.  
  21.  
  22. sPC="HKLM\SOFTWARE\NVIDIA Corporation\RIVA TNT\"
  23. sV1="HKLM\Software\NVIDIA Corporation\RIVA TNT\Direct3D\NOVSYNCPRERENDERLIMIT" 'DW 1-5
  24. Sub Plugin_Initialize 
  25. If (GetWinVer=1 or GetWinVer=3) and RegPathExists(sPC) then
  26.    i=RegReadValue(sV1)
  27.  
  28.    if IsEmpty(i)=false then
  29.       if i>0 and i<6 then
  30.          SetUiElement i,true
  31.       end if
  32.    else 
  33.       SetUiElement 5,true
  34.    end if
  35.  
  36. else
  37.    Call Disable()
  38. end if  
  39. End Sub
  40.  
  41.  
  42. Sub Plugin_CheckData(ElementIndex)
  43. End Sub
  44.  
  45.  
  46.  
  47. Sub Plugin_Apply(ElementIndex,ElementSubIndex)
  48.  if GetUIElement(1)=true then i=1
  49.  if GetUIElement(2)=true then i=2
  50.  if GetUIElement(3)=true then i=3
  51.  if GetUIElement(4)=true then i=4
  52.  if GetUIElement(5)=true then i=5
  53.  
  54.  if isempty(i)=false then
  55.     Call RegWriteValue(sV1,i,2)
  56.     Call Restart()
  57.  end if
  58. End Sub
  59.  
  60.  
  61. Sub Plugin_Terminate 
  62. End Sub
  63.  
  64.  
  65.  
  66.